export default {
    component: 'jzlNotice',
    icon: 'fa fa-bullhorn',
    name: '公告',

    ele_style: {
        _name: '公告',
        _render: '_ele',
        _node: 'sliderComp',
        _ss: {
            theme: 'custom-notice'
        },
        _sh: {},
        _rh: false,
        _sort: [ 'icon', 'text' ],
        _fix: true,

        icon: {
            _name: '图标',
            _render: '_icon',
            _node: 'icon',
            _ss: {
                theme: 'item-note custom-notice-label',
                icon: 'fa fa-bullhorn',
            },
            _sh: {},
            _rh: false
        },
        rows: {
            _name: '轮播',
            _node: 'slider',
            _value: 'model',
            _ss: {},
            _sh: {},
            _rh: false,

            text: {
                _node: "text",
                _name: '文字内容',
                _value: 'scope:title',
                _ss: {
                    theme: 'custom-notice-txt'
                }
            }
        }
    },
    setting: {
        sticky: false
    },
    setting_schema: {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "title": "轮播 Slider 组件参数设置",
        "description": "",
        "type": "object",
        "properties": {
            "autoplay": {
                "title": "自动播放",
                "type": "boolean",
                "ui:widget": "RadioWidget",
                "enumNames": [
                    "自动",
                    "手动"
                ]
            },
            "vertical": {
                "title": "滑动方向",
                "type": "boolean",
                "ui:widget": "RadioWidget",
                "enumNames": [
                    "水平",
                    "垂直"
                ]
            },
            "multiple": {
                "title": "一页数量",
                "type": "integer",
                "minimum": 1,
                "maximum": 5,
                "default": 1
            },
            "interval": {
                "title": "切换间隔（单位：秒）",
                "type": "integer",
                "minimum": 0.5,
                "maximum": 10,
                "default": 3,
                "multipleOf": 0.5,

                'ui:widget': 'el-slider',
                // 'ui:description': '单位毫秒',
                'ui:options': {
                    "showInput": true,
                    "inputSize": "mini",
                    style: {
                        // boxShadow: '0 0 3px 1px yellow',
                    }
                }
            },
            "duration": {
                "title": "动画时长（单位：秒）",
                "type": "integer",
                "minimum": 0.1,
                "maximum": 5,
                "default": 0.5,
                "multipleOf": 0.1,

                'ui:widget': 'el-slider'
            }
        }
    },
    vars: [{
        prop: "model",
        type: "json",
        default: null,
        force: true,
        initType: "static",
        defaultJson: [{
            title: "标题A",
        }, {
            title: "标题B",
        }]
    }],
    data_fieldsmap: {},
    data_schema: {       // 组件需要的字段
        "$schema": "http://json-schema.org/draft-04/schema#",
        "title": "数据列表",
        "description": "list description",
        "type": "array",
        "items": {
            "title": "",
            "type": "object",
            "properties": {
                "title": {
                    "title": "名称",
                    "type": "string"
                },
                "href": {
                    "title": "链接",
                    "type": "string",
                    "ui:options": {
                        'widget': 'LinkView',
                        'attrs': {

                        }
                    }
                }
            }
        }
    },
    data_type: 'static',    // static | dync
    data_dync: {
        form_code: '',
        form_view_code: '',
        report_code: '',
        url: ''
    },
    data_static: []
}
